package com.qf.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data// 自动生成set get toString 无参构造
@AllArgsConstructor// 给出全参构造,就不会有默认的无参构造
@NoArgsConstructor // 给出无参构造
public class Emp {
    private Integer empno;
    private String ename;
    private String job;
    private Integer mgr;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date hiredate;
    private Double sal;
    private Double comm;
    private Integer deptno;
}
